package com.dreammakerteam.frameworkdemo.base.domain;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 系统-用户表
 * </p>
 *
 * @author Yanghu
 * @since 2017-10-11
 */
@TableName("d_user")
public class DUserDo extends Model<DUserDo> {


    private static final long serialVersionUID = -1477481769335544383L;
    /**
     * id
     */
    @TableId("du_id")
    private Long duId;
    /**
     * 用户名
     */
    @TableField("du_username")
    private String duUsername;
    /**
     * 密码
     */
    @TableField("du_password")
    private String duPassword;
    /**
     * 昵称
     */
    @TableField("du_nickname")
    private String duNickname;
    /**
     * 邮箱
     */
    @TableField("du_email")
    private String duEmail;
    /**
     * 创建用户
     */
    @TableField("du_create_id")
    private Long duCreateId;
    /**
     * 创建日期
     */
    @TableField("du_create_date")
    private Date duCreateDate;
    /**
     * 状态
     */
    @TableField("du_state")
    private Integer duState;

    @Override
    protected Serializable pkVal() {
        return this.duId;
    }

    @Override
    public String toString() {
        return "DUserDo{" +
                "duId=" + duId +
                ", duUsername='" + duUsername + '\'' +
                ", duPassword='" + duPassword + '\'' +
                ", duNickname='" + duNickname + '\'' +
                ", duEmail='" + duEmail + '\'' +
                ", duCreateId=" + duCreateId +
                ", duCreateDate=" + duCreateDate +
                ", duState=" + duState +
                '}';
    }

    public Long getDuId() {
        return duId;
    }

    public DUserDo setDuId(Long duId) {
        this.duId = duId;
        return this;
    }

    public String getDuUsername() {
        return duUsername;
    }

    public DUserDo setDuUsername(String duUsername) {
        this.duUsername = duUsername;
        return this;
    }

    public String getDuPassword() {
        return duPassword;
    }

    public DUserDo setDuPassword(String duPassword) {
        this.duPassword = duPassword;
        return this;
    }

    public String getDuNickname() {
        return duNickname;
    }

    public DUserDo setDuNickname(String duNickname) {
        this.duNickname = duNickname;
        return this;
    }

    public String getDuEmail() {
        return duEmail;
    }

    public DUserDo setDuEmail(String duEmail) {
        this.duEmail = duEmail;
        return this;
    }

    public Long getDuCreateId() {
        return duCreateId;
    }

    public DUserDo setDuCreateId(Long duCreateId) {
        this.duCreateId = duCreateId;
        return this;
    }

    public Date getDuCreateDate() {
        return duCreateDate;
    }

    public DUserDo setDuCreateDate(Date duCreateDate) {
        this.duCreateDate = duCreateDate;
        return this;
    }

    public Integer getDuState() {
        return duState;
    }

    public DUserDo setDuState(Integer duState) {
        this.duState = duState;
        return this;
    }
}
